﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
                 com.kylin.common.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
				 com.kylin.module.study.orm.Article
				 " %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>

<%Article article = (Article)request.getAttribute(Constants.KEY_REQUEST_RESULT);%>
<br>
<mytag:MyActionMsg />
<html:form action="/admin/study/manageArticle.do?CMD=executeUpdate" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<%=article.getId()%>">
	<table width="90%" cellspacing="0" cellpadding="0">
		<tr>
			<td class='pageTd' width="100">
				母语
			</td>
			<td>
				<%
					if(article.getLanguage() != null && !article.getLanguage().equals(""))
					{
						if(article.getLanguage().equals("zh_CN"))
							out.println("中文");
					}
					else
						out.println("");
				%>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				学习语言
			</td>
			<td>
				<%
					if(article.getTargetlang() != null && !article.getTargetlang().equals(""))
					{
						if(article.getTargetlang().equals("zh_CN"))
							out.println("中文");
					}
					else
						out.println("");
				%>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				所属分类
			</td>
			<td>
				<mytag:select name="catarticleid" notEmpty="true"
					dictName="<%=dict_cat_study3%>" value="<%=(article.getCatarticle().getId()).toString()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				文章标题
			</td>
			<td>
				<html:text property="title" value="<%=article.getTitle() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				文章内容
			</td>
			<td>
				<html:textarea property="content" value="<%=article.getContent() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				语音上传
			</td>
			<td>
				<html:text property="audiopath" value="<%=article.getAudio()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				排序号
			</td>
			<td>
				<html:text property="ordering" value="<%=article.getOrdering().toString() %>"/>
			</td>
		</tr>
		<tr>
			<td colspan=2 align="center">
				<input type="submit" value="保存">
			</td>
		</tr>
	</table>
</html:form>
